import http from "../common/http.js";

export default {
  apply: (data, needLoading) => {
    return http.GET("/shop/apply", data, needLoading);
  },
  applySubmit: (data, needLoading) => {
    return http.POST("/shop/apply-submit", data, needLoading);
  },
  admin: (data, needLoading) => {
    return http.POST("/shop/admin", data, needLoading);
  },
  order: (data, needLoading) => {
    return http.GET("/shop/order", data, needLoading);
  },
  nearby: (data, needLoading) => {
    return http.GET("/shop/nearby", data, needLoading);
  },
  info: (data, needLoading) => {
    return http.GET("/shop/info", data, needLoading);
  },
  confirm: (data, needLoading) => {
    return http.GET("/shop/confirm", data, needLoading);
  },
  clerk: (data, needLoading) => {
    return http.GET("/shop/clerk", data, needLoading);
  },
  cardClerk: (data, needLoading) => {
    return http.GET("/shop/card-clerk", data, needLoading);
  },
  cardInfo: (data, needLoading) => {
    return http.GET("/shop/card-info", data, needLoading);
  },
  cash: (data, needLoading) => {
    return http.GET("/shop/cash", data, needLoading);
  },
  cashSubmit: (data, needLoading) => {
    return http.GET("/shop/cash-submit", data, needLoading);
  },
  smsSend: (data, needLoading) => {
    return http.GET("/shop/sms-send", data, needLoading);
  },
  cashSubmitApply: (data, needLoading) => {
    return http.POST("/share/apply", data, needLoading);
  },
  // 获取门店列表
  getMdList: (data) => {
    return http.GET("/md/list", data);
  },
  getInfo(data, needLoading) {
    return http.GET("/store/get-info", data, needLoading);
  },
  storeList(data, needLoading) {
    return http.GET("/store/list", data, needLoading);
  },
};
